#ifndef __JWTCODE_H__
#define __JWTCODE_H__

#include <my_header.h>
#include "l8w8jwt/encode.h" 
#include "l8w8jwt/decode.h"
#include "cmd_Task.h"
#define JWT_SECRET_KEY "YoUR sUpEr S3krEt 1337 HMAC kEy HeRE"

//生成密码结构体
int jwt_encode(accept_info_t* userinfo,char *username);


//判断结构体是否合法
int jwt_decode(accept_info_t* userinfo);

task_t* accept_and_get_task(int netfd,accept_info_t *userinfo);





#endif